﻿@model IEnumerable<CloudStorageLight.Core.BlobLog>
@{
    ViewBag.Title = "LogView";
    Layout = "~/Views/Shared/_LayoutCloudStorage.cshtml";
}

<h2>LogView</h2>

@if (Model != null)
{
    <table border="1" cellpadding="5">
        <tr>
            <th>Date</th>
            <th>Action</th>
            <th>Path</th>
            <th>User</th>
            <th>Remark</th>
        </tr>
        @foreach (var item in Model.OrderByDescending(x=>x.Date))
        {
            <tr>
                <td>
                    @item.Date.ToString("yyyy/MM/dd HH:mm:ss fff")
                </td>
                <td>
                    @(item.Action ?? "")
                </td>
                <td>
                    @(item.Path ?? "")
                </td>
                <td>
                    @(item.UserName ?? "")
                </td>
                <td>
                    @(item.Additional ?? "")
                </td>
            </tr>
        }
    </table>
}

